package cn.neusoft.service;

import cn.neusoft.domain.*;
import cn.neusoft.query.BaseQuery;
import cn.neusoft.query.OrderQuery;
import cn.neusoft.vo.PageBean;
import cn.neusoft.vo.TreeSelect;

import javax.management.OperationsException;
import java.util.List;
import java.util.Map;

public interface TaskService {

    String add(Task task);

    void deleteById(String task_id);

    void update(Task task);

    Task findById(String task_id);

    List<Task> findAll();

    PageBean findByPage(BaseQuery query);

    void updateOrderStatus(Order order);

    Map<String, Object> scheduling(BaseQuery query) throws Exception;

    Warehouse findWarehouseBySubstationId(Long substation_id);

    List<Map<String, Object>> findFittingSubstation(Long amount);

    void updateTask(Task task);

    void entryTask(Task task);

    void updateStrategy(Integer strategy);

    Integer getStrategy();

}
